package main.pojo;

import java.util.Date;

/**
 * 评分（用于计算综合评分）
 *
 * @TableName SCORE
 */

public class Score {
    /**
     * 主键
     */
    private String id;

    /**
     * 分数
     */
    private String score;

    /**
     * 对象
     */
    private String obj;

    /**
     * 对象类型
     */
    private String type;

    /**
     * 所属门店
     */
    private String store;

    /**
     * 创建者
     */
    private String creator;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 更新者
     */
    private String updater;

    /**
     * 更新时间
     */
    private Date updateDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public String getObj() {
        return obj;
    }

    public void setObj(String obj) {
        this.obj = obj;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStore() {
        return store;
    }

    public void setStore(String store) {
        this.store = store;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Score score1 = (Score) o;

        if (id != null ? !id.equals(score1.id) : score1.id != null) return false;
        if (score != null ? !score.equals(score1.score) : score1.score != null) return false;
        if (obj != null ? !obj.equals(score1.obj) : score1.obj != null) return false;
        if (type != null ? !type.equals(score1.type) : score1.type != null) return false;
        if (store != null ? !store.equals(score1.store) : score1.store != null) return false;
        if (creator != null ? !creator.equals(score1.creator) : score1.creator != null) return false;
        if (createDate != null ? !createDate.equals(score1.createDate) : score1.createDate != null) return false;
        if (updater != null ? !updater.equals(score1.updater) : score1.updater != null) return false;
        return updateDate != null ? updateDate.equals(score1.updateDate) : score1.updateDate == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (score != null ? score.hashCode() : 0);
        result = 31 * result + (obj != null ? obj.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (store != null ? store.hashCode() : 0);
        result = 31 * result + (creator != null ? creator.hashCode() : 0);
        result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
        result = 31 * result + (updater != null ? updater.hashCode() : 0);
        result = 31 * result + (updateDate != null ? updateDate.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "Score{" +
                "id='" + id + '\'' +
                ", score='" + score + '\'' +
                ", obj='" + obj + '\'' +
                ", type='" + type + '\'' +
                ", store='" + store + '\'' +
                ", creator='" + creator + '\'' +
                ", createDate=" + createDate +
                ", updater='" + updater + '\'' +
                ", updateDate=" + updateDate +
                '}';
    }
}